{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>查看</h5>
                </div>
                <div class="ibox-content layui-form">
                    <div class="layui-row layui-col-space10 layui-form-item ">
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">用户：</label>
                            <div class="layui-input-block">
                                {$data.user_id|return_username}&emsp;&emsp;
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">内容：</label>
                            <div class="layui-input-block">
                                <textarea placeholder="请输入内容" class="layui-textarea" readonly>{$data.content}</textarea>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">评论时间：</label>
                            <div class="layui-input-block">
                                {$data.time}
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">资源类别：</label>
                            <div class="layui-input-block">
                                {$data.type|media_type}
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">资源信息：</label>
                            <div class="layui-input-block">
                                <table class="layui-table" lay-filter="test">
                                    <thead>
                                    <tr>
                                        <th>资源名</th>
                                        <th>艺人</th>
                                        <th>是否允许下载</th>
                                        <th>是否VIP资源</th>
                                        <th>模块</th>
                                        <th>模块类别</th>
                                    </tr>
                                    <tr>
                                        <th>{$media_info.name}</th>
                                        <th>{$media_info.user}</th>
                                        <th>{$media_info.is_down|is_down}</th>
                                        <th>{$media_info.is_vip|is_vip}</th>
                                        <th>{$media_info.mode}</th>
                                        <th>{$media_info.mode_type}</th>
                                    </tr>
                                    </thead>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}
<script>
    //    var editor = wk.wang({elem:'#LAY_editor'});
    wk.uploadImg({size:5,type:'png,jpg,jpeg',url:"{:url('Upload/upload')}",domain:""});
    layui.use(['form','upload','layedit','laydate'], function() {
        var form = layui.form;
//        form.verify({
//            editor:function(value,item){
//                if(editor.txt.html() == '<p><br></p>'){
//                    return '请填写内容';
//                }
//            }
//        });

        var laydate = layui.laydate;
        //同时绑定多个
        lay('.test-item').each(function(){
            laydate.render({
                elem: this
                ,format:'yyyy-MM-dd'
                ,type:'date'
                ,trigger: 'click'
            });
        });
//        form.on('select(role)', function(data){
//            if(data.value == 1){
//                $(".banner_link").removeClass('hidden');
//                $(".banner_cate").addClass('hidden');
//                $(".banner_new").addClass('hidden');
//            }else{
//                $(".banner_link").addClass('hidden');
//                $(".banner_cate").removeClass('hidden');
//                if(banner_cate == 3){
//                    $(".banner_new").removeClass('hidden');
//                }
//            }
//        });
//        form.on('select(role1)', function(data){
//            banner_cate = data.value;
//            if(data.value == 1){
//                $('.banner_new').addClass('hidden');
//            }else if(data.value == 2){
//                $('.banner_new').addClass('hidden');
//            }else {
//                $('.banner_new').removeClass('hidden');
//            }
//        });
    });
</script>

</body>
</html>
